package com.lancoo.ccas52.mapper;

import com.lancoo.ccas52.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

import com.lancoo.ccas52.entity.TeachingClassTeacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.ccas52.config.MybatisRedisCache;
import org.apache.ibatis.annotations.CacheNamespace;

/**
 * <p>
 * 教学班-教师 Mapper 接口
 * </p>
 *
 * @author quin.song
 * @since 2023-01-31
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface TeachingClassTeacherMapper extends BaseMapper<TeachingClassTeacher> {

    int addBatch(@Param("teachingClassTeacherCollection") Collection<TeachingClassTeacher> teachingClassTeacherCollection);

    /**
     * 根据教学班id获取其教师信息
     * @param teachingClassIds
     * @return
     */
    List<Teacher> getTeacherByTeachingClassIds(@Param("teachingClassIds") List<Long> teachingClassIds);
}
